using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN SalaryDataEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: SalaryDataEntity</para>
	/// <para>Description: ClassSalaryDataEntity store data of table SalaryData</para>
	///</summary>

	[Serializable]
	public partial class SalaryDataEntity{


		private bool _InternalChangedIsNullSalaryDataId=true;
		private bool _IsNullSalaryDataId=true;
		private bool _InternalChangedIsNullSalaryFieldId=true;
		private bool _IsNullSalaryFieldId=true;
		private bool _InternalChangedIsNullPersonId=true;
		private bool _IsNullPersonId=true;
		private bool _InternalChangedIsNullSalary=true;
		private bool _IsNullSalary=true;
		private bool _InternalChangedIsNullYearOfSalary=true;
		private bool _IsNullYearOfSalary=true;
		private bool _InternalChangedIsNullMonthOfSalary=true;
		private bool _IsNullMonthOfSalary=true;
		private bool _InternalChangedIsNullUserId=true;
		private bool _IsNullUserId=true;
		private int _SalaryDataId;
		private int _SalaryFieldId;
		private int _PersonId;
		private Decimal _Salary;
		private int _YearOfSalary;
		private int _MonthOfSalary;
		private int _UserId;
		[XmlElement(ElementName = "IsNullSalaryDataId")]
		public bool IsNullSalaryDataId{
			get{return _IsNullSalaryDataId;}
			set{if(!_InternalChangedIsNullSalaryDataId)_IsNullSalaryDataId=value;}
		}
		[XmlElement(ElementName = "IsNullSalaryFieldId")]
		public bool IsNullSalaryFieldId{
			get{return _IsNullSalaryFieldId;}
			set{if(!_InternalChangedIsNullSalaryFieldId)_IsNullSalaryFieldId=value;}
		}
		[XmlElement(ElementName = "IsNullPersonId")]
		public bool IsNullPersonId{
			get{return _IsNullPersonId;}
			set{if(!_InternalChangedIsNullPersonId)_IsNullPersonId=value;}
		}
		[XmlElement(ElementName = "IsNullSalary")]
		public bool IsNullSalary{
			get{return _IsNullSalary;}
			set{if(!_InternalChangedIsNullSalary)_IsNullSalary=value;}
		}
		[XmlElement(ElementName = "IsNullYearOfSalary")]
		public bool IsNullYearOfSalary{
			get{return _IsNullYearOfSalary;}
			set{if(!_InternalChangedIsNullYearOfSalary)_IsNullYearOfSalary=value;}
		}
		[XmlElement(ElementName = "IsNullMonthOfSalary")]
		public bool IsNullMonthOfSalary{
			get{return _IsNullMonthOfSalary;}
			set{if(!_InternalChangedIsNullMonthOfSalary)_IsNullMonthOfSalary=value;}
		}
		[XmlElement(ElementName = "IsNullUserId")]
		public bool IsNullUserId{
			get{return _IsNullUserId;}
			set{if(!_InternalChangedIsNullUserId)_IsNullUserId=value;}
		}
		[XmlElement(ElementName = "SalaryDataId")]
		public int SalaryDataId{
			get{return _SalaryDataId;}
			set{
				_SalaryDataId=value;
				if(_SalaryDataId!=null){
					_IsNullSalaryDataId=false;
					_InternalChangedIsNullSalaryDataId=true;
				}
			}
		}
		[XmlElement(ElementName = "SalaryFieldId")]
		public int SalaryFieldId{
			get{return _SalaryFieldId;}
			set{
				_SalaryFieldId=value;
				if(_SalaryFieldId!=null){
					_IsNullSalaryFieldId=false;
					_InternalChangedIsNullSalaryFieldId=true;
				}
			}
		}
		[XmlElement(ElementName = "PersonId")]
		public int PersonId{
			get{return _PersonId;}
			set{
				_PersonId=value;
				if(_PersonId!=null){
					_IsNullPersonId=false;
					_InternalChangedIsNullPersonId=true;
				}
			}
		}
		[XmlElement(ElementName = "Salary")]
		public Decimal Salary{
			get{return _Salary;}
			set{
				_Salary=value;
				if(_Salary!=null){
					_IsNullSalary=false;
					_InternalChangedIsNullSalary=true;
				}
			}
		}
		[XmlElement(ElementName = "YearOfSalary")]
		public int YearOfSalary{
			get{return _YearOfSalary;}
			set{
				_YearOfSalary=value;
				if(_YearOfSalary!=null){
					_IsNullYearOfSalary=false;
					_InternalChangedIsNullYearOfSalary=true;
				}
			}
		}
		[XmlElement(ElementName = "MonthOfSalary")]
		public int MonthOfSalary{
			get{return _MonthOfSalary;}
			set{
				_MonthOfSalary=value;
				if(_MonthOfSalary!=null){
					_IsNullMonthOfSalary=false;
					_InternalChangedIsNullMonthOfSalary=true;
				}
			}
		}
		[XmlElement(ElementName = "UserId")]
		public int UserId{
			get{return _UserId;}
			set{
				_UserId=value;
				if(_UserId!=null){
					_IsNullUserId=false;
					_InternalChangedIsNullUserId=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END SalaryDataEntityBase*****************************************/
	/*****************************************************************************************************/
}

